home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS064.dsk
/
REGULAR WITHDRAWALS.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
537b
|
19 lines
9 HOME
10 PRINT " REGULAR WITHDRAWALS FROM AN INVESTMENT"
20 PRINT
30 INPUT " INITIAL INVESTMENT";P
31 PRINT
35 INPUT " NOMINAL INTREST RATE";I
36 PRINT
40 INPUT " NUMBER OF WITHDRAWALS PER YEAR";N
41 PRINT
50 INPUT " NUMBER OF YEARS,MONTHS ";YO,M
51 Y = (12 *YO +M)/12
52 PRINT
55 I = I/N/100
60 R = P *(I/((1 +I) ^(N *Y) -1) +I)
70 PRINT " AMOUNT OF EACH WITHDRAWAL = $"; INT(R *100 +.5)/100
75 PRINT : PRINT : PRINT
80 INPUT " WOULD YOU LIKE TO CONTINUE ? ";N$
81 IF N$ = "Y" GOTO 9
90 PRINT CHR$(4);"RUN MENU"